﻿using UnityEngine;
using System.Collections;

public class GameManager : MonoBehaviour {

	public GameObject player;
	private GameCamera cam; 
	
	// Use this for initialization
	void Start () {
		cam = GetComponent<GameCamera>();
		spawnPlayer ();

	}
	
	private void spawnPlayer()
	{
		cam.setTarget((Instantiate (player, Vector3.zero, Quaternion.identity) as GameObject).transform);
	
	}
}